/**
 * Author: Dmitry Ustimov
 * Date: 5/14/13
 * Time: 9:24 PM
 */

package com.gmail.dmitryustimov.ms.java7.mediator.classic.example.classic_example1;

public class Flight {
    private Mediator mediator;

    public Flight(Mediator mediator) {
        this.mediator = mediator;
    }

    public void land() {
        if (mediator.isLandingOk()) {
            System.out.println("Landing done....");
            mediator.setLandingStatus(true);
        } else
            System.out.println("Will wait to land....");
    }

    public void getReady() {
        System.out.println("Getting ready...");
    }
}
